package cn.haohaowo.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Getter
@Setter
@Component
@ConfigurationProperties
public class CommonProperties {

	@Value("${jdbc.driver}")
	public String jdbcDriver;
	@Value("${jdbc.url}")
	public String jdbcUrl;
	@Value("${jdbc.username}")
	public String jdbcUser;
	@Value("${jdbc.password}")
	public String jdbcPassword;

}
